package com.kuang.dao;

import com.kuang.pojo.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherMapper {
    //获取老师
    List<Teacher> getTeachers();

    //获取指定老师下所有学生信息
    Teacher getTeacher(@Param("id") int id);

    //使用子查询嵌套
    Teacher getTeacher2(@Param("id") int id);

}
